/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdMeshOp2Collect;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自然网格结果库-采集业务对象 isfd_op2_collect
 *
 * @author hxloongs
 * @date 2025-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdMeshOp2Collect.class, reverseConvertGenerate = false)
public class IsfdMeshOp2CollectBo extends BaseEntity {
    private Long id;
    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String uploadId;

    /**
     * 上传时刻的时间戳
     */
    @NotNull(message = "上传时刻的时间戳不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long uploadTime;

    /**
     * 机型编码
     */
    @NotBlank(message = "机型编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modelNumber;

    /**
     * 批次号
     */
    @NotBlank(message = "批次号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String batchNumber;

    /**
     * 部段编码集合，逗号隔开
     */
    @NotBlank(message = "部段编码集合，逗号隔开不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sectionNumbers;

    /**
     * 轮次编号
     */
    @NotBlank(message = "轮次编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String roundNumber;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 是否通过质量检测,0-通过，1-不通过
     */
    @NotNull(message = "是否通过质量检测,0-通过，1-不通过不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer qualityCheck;

    /**
     * 是否过滤,0-没被过滤，1-过滤
     */
    @NotNull(message = "是否过滤,0-没被过滤，1-过滤不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer filtered;

    /**
     * 上传失败提示信息
     */
    @NotBlank(message = "上传失败提示信息不能为空", groups = {AddGroup.class, EditGroup.class})
    private String message;

    /**
     * 结果库表名
     */
    private String tableName;

    /**
     * 上传文件
     */
    private IsfdLargeFileBo isfdLargeFileBo;
}
